package org.jeecg.modules.business.takestockplan.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.business.takestockplan.entity.TakeStockResult;
import org.jeecg.modules.business.takestockplan.entity.VO.TakeStockPlanExecuteMaterialVO;
import org.jeecg.modules.business.takestockplan.entity.VO.TakeStockPlanExecuteVO;
import org.jeecg.modules.business.takestockplan.entity.VO.TakeStockResultMaterialVO;
import org.jeecg.modules.business.takestockplan.entity.VO.TakeStockResultVO;

/**
 * @Description: 盘盈盘亏单
 * @Author: jeecg-boot
 * @Date:   2023-08-08
 * @Version: V1.0
 */
public interface ITakeStockResultService extends IService<TakeStockResult> {

    /**
     * 分页
     * @param page
     * @param takeStockResult
     * @return
     */
    Page<TakeStockResultVO> listByPage(Page<TakeStockResultVO> page, TakeStockResultVO takeStockResult);

    /**
     * 通过id删除
     * @param id
     */
    void deleteResult(String id);

    /**
     * 详情
     * @param id
     * @return
     */
    TakeStockResultMaterialVO getResultById(String id);

    /**
     * 盘盈入库
     * @param id
     */
    void addInReceipt(String id);

    /**
     * 盘亏出库
     * @param id
     */
    void addOutReceipt(String id);
}
